<script setup lang="ts">
import { ref } from 'vue';
import IfStudy from './IfStudy.vue';
import V_for from './V_for.vue';
import Div_for from './Div_for.vue';
let name="张三";

let name2=ref("张三");
// name2="李四"

let login=() =>{
    alert(name2.value)
}
</script>

<template>
 <!--<div>你好{{name2}}</div>-->
 <div class="main">
<h1>{{name2}}</h1>
<input v-model="name2"></input>
<input :value="name2"></input>


<button v-on:click="login">登录</button>
<button @click="login">登录</button>
 </div>
 <IfStudy></IfStudy>
 <V_for></V_for>
 <Div_for></Div_for>
</template>

<style scoped></style>
